import express from "express";
import cookie from "cookie-parser";
import { mainrouter } from "./mainrouter";
import { selectrouter } from "./selectrouter";

const app = express();
 
app.set("view engine", "hbs");
app.set("views", __dirname + "/../view");

app.use(express.static("public"));
app.use(express.json());
app.use(cookie());
app.use(mainrouter);
app.use(selectrouter);

app.listen(1500, "0.0.0.0");
